package com.excelexport.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.excelexport.utils.IdUtils;
import com.excelexport.utils.easyexcel.EasyBaseModel;
import lombok.Data;

import java.util.Date;

/**
 * @author Agus
 */
@Data
public class Lottery implements EasyBaseModel {
    @ExcelIgnore
    private String id;
    @ExcelIgnore
    private Date createTime;
    @ExcelProperty(value = "code",index = 0)
    private String code;
    @ExcelProperty(value = "红球1",index = 1)
    private Integer red1;
    @ExcelProperty(value = "红球2",index = 2)
    private Integer red2;
    @ExcelProperty(value = "红球3",index = 3)
    private Integer red3;
    @ExcelProperty(value = "红球4",index = 4)
    private Integer red4;
    @ExcelProperty(value = "红球5",index = 5)
    private Integer red5;
    @ExcelProperty(value = "蓝球1",index = 6)
    private Integer blue1;
    @ExcelProperty(value = "蓝球2",index = 7)
    private Integer blue2;
    @ColumnWidth(50)
    @ExcelProperty(value = "开奖日期",index = 8)
    private Date openDate;

    public Lottery() {
        setId(IdUtils.getRandomIdByUUID());
    }
}